﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
//using System.Linq;
using System.Text;
//using System.Threading.Tasks;
using System.Windows.Forms;

namespace PIM_ATE.Mods
{
    public partial class FrmTestMode : Form
    {
        public ModTestMode m_mode;
        public FrmTestMode(ModTestMode mode)
        {
            InitializeComponent();
            m_mode = mode;
            if (m_mode == ModTestMode.First)
            {
                rbFirst.Checked = true;
            }
            else
            {
                rbSecond.Checked = true;
            }
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            if (rbFirst.Checked)
            {
                m_mode = ModTestMode.First;
            }
            else
            {
                m_mode = ModTestMode.Second;
            }
            this.DialogResult = DialogResult.OK;
        }
    }
}
